12. Controlling Components Using Code

Controlling Components Using Code

Video Addendum

Tip: To more easily see that the seagulls have different colors, try changing the color assignment to use the Random.ColorHSV method to generate random colors rather than only differnt shades of gray:

// objectRenderer.material.color = Color.white * Random.value;
objectRenderer.material.color = Random.ColorHSV();

Additional Reading